/ Eagles Nest BBS 8
/ Eagles_Nest_Mac_Collection_Disc_8.TOAST / Developer Tools⁄Additions / TMONPro301#3 / TMON Pro. Three / Discipline / Discipline Examples / AddrTest.c ![]() | next > |
MacBinary | 1991-04-09 | 1.8 KB | [TEXT/MPS ] |
Confidence | Program | Detection | Match Type | Support |
---|---|---|---|---|
66% | dexvert | Compact Compressed (Unix) (archive/compact) | ext | Supported |
10% | dexvert | MacBinary (archive/macBinary) | fallback | Supported |
1% | dexvert | Text File (text/txt) | fallback | Supported |
100% | file | MacBinary II, inited, Tue Apr 9 11:58:10 1991, modified Tue Apr 9 11:58:10 1991, creator 'MPS ', type ASCII, 1151 bytes "AddrTest.c" , at 0x4ff 428 bytes resource | default (weak) | |
99% | file | data | default | |
74% | TrID | Macintosh plain text (MacBinary) | default | |
25% | TrID | MacBinary 2 | default (weak) | |
100% | siegfried | fmt/1762 MacBinary (II) | default | |
100% | lsar | MacBinary | default |
id metadata | |
---|---|
key | value |
macFileType | [TEXT] |
macFileCreator | [MPS ] |
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0a 41 64 64 72 54 65 | 73 74 2e 63 00 00 00 00 |..AddrTe|st.c....|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 4d 50 53 | 20 01 00 00 00 00 00 00 |.TEXTMPS| .......|
|00000050| 00 00 00 00 00 04 7f 00 | 00 01 ac a4 27 95 12 a4 |........|....'...|
|00000060| 27 95 12 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |'.......|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 6a 46 00 00 |........|....jF..|
|00000080| 0d 23 69 6e 63 6c 75 64 | 65 09 3c 54 79 70 65 73 |.#includ|e.<Types|
|00000090| 2e 68 3e 0d 23 69 6e 63 | 6c 75 64 65 20 3c 4d 65 |.h>.#inc|lude <Me|
|000000a0| 6d 6f 72 79 2e 68 3e 0d | 23 69 6e 63 6c 75 64 65 |mory.h>.|#include|
|000000b0| 20 3c 51 75 69 63 6b 44 | 72 61 77 2e 68 3e 0d 23 | <QuickD|raw.h>.#|
|000000c0| 69 6e 63 6c 75 64 65 20 | 3c 50 61 63 6b 61 67 65 |include |<Package|
|000000d0| 73 2e 68 3e 0d 23 69 6e | 63 6c 75 64 65 20 3c 53 |s.h>.#in|clude <S|
|000000e0| 74 72 69 6e 67 73 2e 68 | 3e 0d 23 69 6e 63 6c 75 |trings.h|>.#inclu|
|000000f0| 64 65 20 3c 53 79 73 45 | 71 75 2e 68 3e 0d 23 69 |de <SysE|qu.h>.#i|
|00000100| 6e 63 6c 75 64 65 20 3c | 54 6f 6f 6c 55 74 69 6c |nclude <|ToolUtil|
|00000110| 73 2e 68 3e 0d 23 69 6e | 63 6c 75 64 65 20 3c 54 |s.h>.#in|clude <T|
|00000120| 72 61 70 73 2e 68 3e 0d | 23 69 6e 63 6c 75 64 65 |raps.h>.|#include|
|00000130| 20 22 57 69 6d 70 79 2e | 68 22 0d 0d 2f 2f 74 68 | "Wimpy.|h"..//th|
|00000140| 65 20 63 61 6c 6c 20 74 | 6f 20 74 65 73 74 41 64 |e call t|o testAd|
|00000150| 64 72 0d 70 61 73 63 61 | 6c 09 63 68 61 72 09 2a |dr.pasca|l.char.*|
|00000160| 09 74 68 65 54 65 73 74 | 09 28 6c 6f 6e 67 09 2a |.theTest|.(long.*|
|00000170| 09 73 65 6c 65 63 74 6f | 72 29 0d 7b 0d 73 77 69 |.selecto|r).{.swi|
|00000180| 74 63 68 20 28 73 65 6c | 65 63 74 6f 72 5b 30 5d |tch (sel|ector[0]|
|00000190| 29 0d 09 7b 0d 09 63 61 | 73 65 20 30 3a 0d 09 09 |)..{..ca|se 0:...|
|000001a0| 09 09 09 2f 2a 20 72 65 | 74 75 72 6e 20 74 65 73 |.../* re|turn tes|
|000001b0| 74 20 6e 61 6d 65 20 2a | 2f 0d 09 09 09 72 65 74 |t name *|/....ret|
|000001c0| 75 72 6e 28 22 41 64 64 | 72 65 73 73 54 73 74 22 |urn("Add|ressTst"|
|000001d0| 29 3b 0d 09 09 09 62 72 | 65 61 6b 3b 0d 09 63 61 |);....br|eak;..ca|
|000001e0| 73 65 20 31 3a 09 09 09 | 2f 2a 72 65 74 75 72 6e |se 1:...|/*return|
|000001f0| 20 74 65 73 74 20 64 65 | 73 63 72 69 70 74 69 6f | test de|scriptio|
|00000200| 6e 20 2c 20 69 6e 63 6c | 75 64 69 6e 67 20 74 65 |n , incl|uding te|
|00000210| 73 74 20 70 61 72 61 6d | 65 74 65 72 73 20 69 6e |st param|eters in|
|00000220| 20 d2 d3 20 2a 2f 0d 09 | 09 09 72 65 74 75 72 6e | .. */..|..return|
|00000230| 28 22 43 68 65 63 6b 20 | d2 74 65 73 74 65 65 2c |("Check |.testee,|
|00000240| 31 2c 4c d3 20 70 6f 69 | 6e 74 73 20 74 6f 20 76 |1,L. poi|nts to v|
|00000250| 61 6c 69 64 20 6d 65 6d | 6f 72 79 2e 22 29 3b 0d |alid mem|ory.");.|
|00000260| 09 09 09 62 72 65 61 6b | 3b 0d 09 63 61 73 65 20 |...break|;..case |
|00000270| 32 3a 09 09 09 2f 2a 64 | 6f 20 67 75 74 73 20 6f |2:.../*d|o guts o|
|00000280| 66 20 74 65 73 74 20 6f | 72 20 6d 61 6b 65 20 63 |f test o|r make c|
|00000290| 61 6c 6c 20 74 6f 20 61 | 63 74 75 61 6c 20 74 65 |all to a|ctual te|
|000002a0| 73 74 20 70 72 6f 63 65 | 64 75 75 72 65 20 2a 2f |st proce|duure */|
|000002b0| 0d 09 09 09 72 65 74 75 | 72 6e 20 74 65 73 74 41 |....retu|rn testA|
|000002c0| 64 64 72 28 28 50 74 72 | 29 73 65 6c 65 63 74 6f |ddr((Ptr|)selecto|
|000002d0| 72 5b 31 5d 29 3b 0d 0d | 09 09 09 2f 2a 69 6e 20 |r[1]);..|.../*in |
|000002e0| 74 65 73 74 20 72 65 74 | 75 72 6e 20 61 20 73 74 |test ret|urn a st|
|000002f0| 72 69 6e 67 20 66 6f 72 | 20 74 68 65 20 74 65 73 |ring for| the tes|
|00000300| 74 2a 2f 0d 09 09 09 2f | 2a 66 61 69 6c 69 6e 67 |t*/..../|*failing|
|00000310| 20 6f 72 20 6e 69 6c 20 | 66 6f 72 20 74 65 73 74 | or nil |for test|
|00000320| 20 70 61 73 73 65 73 20 | 2a 2f 0d 09 09 09 62 72 | passes |*/....br|
|00000330| 65 61 6b 3b 0d 09 64 65 | 66 61 75 6c 74 20 3a 0d |eak;..de|fault :.|
|00000340| 09 09 72 65 74 75 72 6e | 20 28 6e 69 6c 29 3b 0d |..return| (nil);.|
|00000350| 09 09 62 72 65 61 6b 3b | 0d 09 7d 3b 0d 7d 0d 0d |..break;|..};.}..|
|00000360| 20 20 20 0d 2f 2a 0d 6d | 61 6b 65 20 69 6e 73 74 | ./*.m|ake inst|
|00000370| 72 75 63 74 69 6f 6e 73 | 0d 63 20 41 64 64 72 54 |ructions|.c AddrT|
|00000380| 73 74 2e 63 20 2d 72 20 | 2d 62 20 2d 74 20 2d 73 |st.c -r |-b -t -s|
|00000390| 79 6d 20 6f 66 66 20 2d | 6d 62 67 20 6f 66 66 20 |ym off -|mbg off |
|000003a0| 2d 73 20 73 6f 6d 65 53 | 65 67 4e 61 6d 65 20 2d |-s someS|egName -|
|000003b0| 6f 20 41 64 64 72 54 73 | 74 2e 63 2e 6f 0d 63 20 |o AddrTs|t.c.o.c |
|000003c0| 41 64 64 72 54 73 74 32 | 2e 63 20 2d 72 20 2d 62 |AddrTst2|.c -r -b|
|000003d0| 20 2d 74 20 2d 73 79 6d | 20 6f 66 66 20 2d 6d 62 | -t -sym| off -mb|
|000003e0| 67 20 6f 66 66 20 2d 73 | 20 73 6f 6d 65 53 65 67 |g off -s| someSeg|
|000003f0| 4e 61 6d 65 20 2d 6f 20 | 41 64 64 72 54 73 74 32 |Name -o |AddrTst2|
|00000400| 2e 63 2e 6f 0d 6c 69 6e | 6b 20 20 2d 6d 66 20 2d |.c.o.lin|k -mf -|
|00000410| 72 74 20 64 73 63 74 3d | 31 30 34 34 20 2d 73 67 |rt dsct=|1044 -sg|
|00000420| 20 41 64 64 72 65 73 73 | 54 73 74 3d 22 4d 61 69 | Address|Tst="Mai|
|00000430| 6e 22 20 2d 6d 20 22 54 | 48 45 54 45 53 54 22 09 |n" -m "T|HETEST".|
|00000440| 09 b6 0d 09 09 09 2d 73 | 79 6d 20 6f 66 66 09 09 |......-s|ym off..|
|00000450| 09 09 09 09 09 b6 0d 09 | 09 09 22 41 64 64 72 54 |........|.."AddrT|
|00000460| 73 74 2e 63 2e 6f 22 20 | 09 09 09 09 09 b6 0d 09 |st.c.o" |........|
|00000470| 09 09 22 41 64 64 72 54 | 73 74 32 2e 63 2e 6f 22 |.."AddrT|st2.c.o"|
|00000480| 20 09 09 09 09 09 b6 0d | 09 09 09 20 2d 6f 20 22 | .......|... -o "|
|00000490| 44 69 73 63 69 70 6c 69 | 6e 65 20 53 74 61 72 74 |Discipli|ne Start|
|000004a0| 75 70 22 20 20 0d 0d 6d | 61 6b 65 20 73 75 72 65 |up" ..m|ake sure|
|000004b0| 20 74 68 65 20 64 73 63 | 74 20 6e 75 6d 62 65 72 | the dsc|t number|
|000004c0| 20 69 73 20 75 6e 69 71 | 75 65 20 61 6e 64 20 74 | is uniq|ue and t|
|000004d0| 68 65 20 73 65 67 6d 65 | 6e 74 20 6e 61 6d 65 20 |he segme|nt name |
|000004e0| 69 73 20 74 68 65 20 73 | 61 6d 65 20 61 73 20 74 |is the s|ame as t|
|000004f0| 68 65 20 74 65 73 74 20 | 6e 61 6d 65 0d 2a 2f 00 |he test |name.*/.|
|00000500| 00 00 01 00 00 00 01 6e | 00 00 00 6e 00 00 00 3e |.......n|...n...>|
|00000510| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00000520| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00000530| 0a 41 64 64 72 54 65 73 | 74 2e 63 54 02 00 00 00 |.AddrTes|t.cT....|
|00000540| 54 45 58 54 4d 50 53 20 | 01 00 00 00 00 00 00 00 |TEXTMPS |........|
|00000550| 00 00 54 45 58 54 4d 50 | 53 20 01 00 00 00 00 00 |..TEXTMP|S ......|
|00000560| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000570| 00 00 a3 60 7e 3c 00 00 | 04 7f 00 00 01 ac 73 63 |...`~<..|......sc|
|00000580| 69 70 6c 69 6e 65 20 53 | 79 73 74 65 6d 43 61 6c |ipline S|ystemCal|
|00000590| 6c 20 4d 61 6b 65 66 69 | 6c 65 20 20 20 20 20 20 |l Makefi|le |
|000005a0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000005b0| 23 0d 23 09 09 09 09 09 | 09 09 09 09 09 09 09 09 |#.#.....|........|
|000005c0| 09 09 09 09 09 20 20 20 | 23 0d 23 20 20 20 20 20 |..... |#.# |
|000005d0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000005e0| 20 20 20 20 20 20 20 20 | 20 20 44 65 62 62 69 65 | | Debbie|
|000005f0| 20 42 61 72 72 75 73 20 | 20 20 20 20 20 20 20 20 | Barrus | |
|00000600| 00 00 00 48 00 09 4d 6f | 6e 61 63 6f 00 63 6b 44 |...H..Mo|naco.ckD|
|00000610| 72 61 77 2e 68 3e 0d 23 | 69 6e 63 6c 75 64 65 20 |raw.h>.#|include |
|00000620| 3c 50 61 63 6b 61 00 06 | 00 04 00 2d 02 20 03 2c |<Packa..|...-. .,|
|00000630| 04 39 00 36 02 26 03 35 | 04 3f a4 27 4a fb 00 00 |.9.6.&.5|.?.'J...|
|00000640| 03 74 00 00 03 74 00 00 | 00 55 01 00 00 00 00 1e |.t...t..|.U......|
|00000650| 00 2d 02 20 03 2c 04 39 | 00 36 02 26 03 35 04 3f |.-. .,.9|.6.&.5.?|
|00000660| 00 00 00 55 00 00 00 00 | 00 00 00 00 00 00 00 00 |...U....|........|
|00000670| 01 00 00 00 01 6e 00 00 | 00 6e 00 00 00 3e 00 48 |.....n..|.n...>.H|
|00000680| 88 f8 09 30 00 00 00 1c | 00 3e 00 00 4d 50 53 52 |...0....|.>..MPSR|
|00000690| 00 01 00 0a 03 ed ff ff | 00 00 00 00 00 00 00 00 |........|........|
|000006a0| 03 f0 ff ff 00 00 00 4c | 00 4a 72 98 00 00 00 00 |.......L|.Jr.....|
|000006b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000006c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000006d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000006e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000006f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+